package com.hsqn.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class SwaggerConfig {
    @Bean
   public OpenAPI customOpenApI(){
       return new OpenAPI().info(new Info()
                       .title("接口文档")
                       .description("这是用于 Spring Boot 3 + springDot 的API 文档示例")
                       .version("1.0")
                       .contact(new Contact()
                               .name("开发团队")
                               .email("dev@example.com")
                               .url("https://example.com")));
   }
}
